<?
    include "../common.php" ;
    $perPage = $_POST['perPage'] ; 
    $sql = "SELECT COUNT(*) AS c FROM users WHERE isDelete = 1 AND ulevel = 3 " ;
    $res = mysqli_query($link,$sql);
    $arr = [] ; 
    if( $one = mysqli_fetch_assoc($res) ){
        $arr['status'] = 1 ;
        $arr['totalPage'] = ceil($one['c']/$perPage) ;
    } else {
        $arr['status'] = 0 ; 
    }
    echo json_encode($arr);
?>